package com.cncytech.uiautomator_demo.testcase;

import com.cncytech.uiautomator_demo.IRunnerWithParametersFactory;
import com.cncytech.uiautomator_demo.TestConstant;
import com.cncytech.uiautomator_demo.RetryWatcher;
import com.cncytech.uiautomator_demo.utils.Describe;

import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

//@RunWith(Parameterized.class)
@Parameterized.UseParametersRunnerFactory(IRunnerWithParametersFactory.class)
public class ParameterTest {
    private int i;

    public ParameterTest(int i) {
        this.i = i;
    }

    @Rule
    public RetryWatcher retryRule = new RetryWatcher(1);


    @Parameterized.Parameters
    public static Object[] data() {
        return new Object[]{1, 2, 3, 4};
    }

    @BeforeClass
    public static void init() {
    }

    @Test
    @Describe(TestConstant.WLAN_SCAN)
    public void test123() {
        System.out.println(i);
    }
}
